separation of variables example